package tuxing;

public class Rotundity extends Graphics {
    private double radius;

    public Rotundity(double radius) {
        this.radius = radius;
    }

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }
    public double calculateArea(){
        return Math.PI*radius*radius;
    }

    @Override
    public void huiTu() {
        super.huiTu();
        System.out.println("我是圆形");

    }
}
